import { Exclude } from 'class-transformer';
import { OmitType } from '@nestjs/mapped-types';

import { Role } from '@src/role/entity/role.entity';
import { BaseRespDto } from '@src/common/dto/base.resp.dto';

export class UserCreateRespDto extends OmitType(BaseRespDto, ['deletedAt']) {
  username: string;

  @Exclude()
  deletedAt: Date | null;

  @Exclude()
  roles: Role[];

  @Exclude()
  password: string;
}
